package cool.houge.pig.model;

import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

/**
 * 激活邮件实体.
 *
 * @author KK (kzou227@qq.com)
 */
@Table("t_activation_mail")
@Data
@Accessors(chain = true)
public class ActivationMail {

  /** 主键. */
  private @Id Long id;
  /** 用户ID. */
  private @Column Long uid;
  /** 邮箱验证码. */
  private @Column String captcha;
  /** 验证码过期时间. */
  private @Column("expire_time") LocalDateTime expireTime;
  /** 数据版本（乐观锁）. */
  private @Column Integer ver;
  /** 创建时间. */
  private @Column("create_time") LocalDateTime createTime;
  /** 修改时间. */
  private @Column("update_time") LocalDateTime updateTime;
}
